package com.example.pomelo_home.service.impl;

import com.example.pomelo_home.dao.ManagerRepository;
import com.example.pomelo_home.entity.Manager;
import com.example.pomelo_home.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ManagerServiceImpl implements ManagerService {
    @Autowired
    ManagerRepository managerRepository;

    @Override
    public List<Map<Integer, Object>> findUser(String name, String password) {
        return managerRepository.findUser(name, password);
    }

}
